﻿using System.Windows;
using System.Windows.Controls;
using GalaSoft.MvvmLight.Messaging;

namespace Medecine.Interface.Login
{
	public partial class LoginView : UserControl
	{
		public LoginView()
		{
			InitializeComponent();
		}

		private void PasswordBoxPasswordChanged(object sender, RoutedEventArgs e)
		{
			Messenger.Default.Send(new PasswordChangedMessage(((PasswordBox)sender).Password));
		}

		public void Reset()
		{
			passwordBox.Clear();
		}
	}
}
